package cn.openbiotoken;

import androidx.annotation.NonNull;

import java.util.List;

public interface BiometricsFeatureExtractor<Feature> {

    BiometricsFeature<Feature> extract();

    float compare(@NonNull final BiometricsFeature<Feature> a, @NonNull final BiometricsFeature<Feature> b);

    BiometricsFeature<Feature> top(@NonNull final BiometricsFeature<Feature> sample, @NonNull final BiometricsFeature<Feature>[] library, final float valve);

    BiometricsFeature<Feature> top(@NonNull final BiometricsFeature<Feature> sample, @NonNull final List<BiometricsFeature<Feature>> library, final float valve);
}
